<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>百顺通云-系统邮件详情</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- 公用CSS文件引入 -->
        <jsp:include page="../../admin/commonCSS.jsp"></jsp:include>
        <!-- 系统维护css -->
		<link href="/css/admin/systemManager.css" type="text/css" rel="stylesheet"  type="text/css">
    </head>
    <body class="skin-blue">
        
		<!-- 公用头部 -->
        <jsp:include page="../../admin/commonHeader.jsp"></jsp:include>
        
        <div class="wrapper row-offcanvas row-offcanvas-left">
            
            <!-- 公用导航 -->
            <jsp:include page="../../admin/commonMenu.jsp"></jsp:include>

            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                      	系统邮件列表
                        <small>新增系统邮件</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                        <li class="active">系统维护</li>
                        <li class="active">系统邮件设置</li>
                        <li class="active">新增</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content" id="addNewEmail">
                    <!-- Small boxes (Stat box) -->
                    <div class="row fixrowscroll">
						<form class="form-horizontal" role="form" id="email">
						<input type="hidden" name="emailId" value="${email.emailId}"/>
							  <div class="form-group">
							    <label for="inputEmail3" class="col-sm-2 control-label">主题：</label>
							    <div class="col-sm-3">
							      <input type="text" name="emailSubject" value="${email.emailSubject}" class="form-control input-sm" placeholder="主题">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="inputPassword3" class="col-sm-2 control-label">类型：</label>
							    <div class="col-sm-3">
							    	<input type="text" name="emailType" value="${email.emailTypeName}" class="form-control input-sm" placeholder="邮件类型">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="inputEmail3" class="col-sm-2 control-label">发件人：</label>
							    <div class="col-sm-3">
							      <input type="text" name="fromAddress" value="${email.fromAddress}" class="form-control input-sm" placeholder="发件人">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="inputEmail3" class="col-sm-2 control-label">内容：</label>
							    <div class="col-sm-8">
							      <textarea id="email_content" name="emailContent">${email.emailContent}</textarea>
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="inputEmail3" class="col-sm-2 control-label">签名：</label>
							    <div class="col-sm-8">
							      <textarea id="email_signature" name="emailSign">${email.emailSign}</textarea>
							    </div>
							  </div>
							  <c:if test="${email.timeSpace == null|| email.timeSpace == ''}"></c:if>
							  <c:if test="${email.timeSpace != null && email.timeSpace != ''}">
								  <div class="form-group">
								    <label for="inputEmail3" class="col-sm-2 control-label">发送间隔：</label>
								    <div class="col-sm-3">
								      <input type="text" name="timeSpace" value="${email.timeSpace}天" class="form-control input-sm" placeholder="发送间隔">
								    </div>
								  </div>
							  </c:if>
							  <div class="form-group">
							   	<a href="javascript:history.back(-1)"><button type="button" class="btn btn-default">返回</button></a>
							    <div class="col-sm-4">
							    </div>
							  </div>
						</form>
						
                    </div><!-- /.row -->
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->
		<script type="text/javascript">
			var currentMenu = 'systemManager';
		</script>
		<!-- 公用js文件引入 -->
        <jsp:include page="../../admin/commonJs.jsp"></jsp:include>
        <!-- 编辑器插件 -->
		<script charset="utf-8" src="/cdn/kindeditor-4.1.10/kindeditor.js"></script>
		<script charset="utf-8" src="/cdn/kindeditor-4.1.10/lang/zh_CN.js"></script>

		<script src="/js/admin/systemManager/addNewSysEmail.js"></script>
		<script src="/js/admin/systemManager/sysEmailManager.js"></script>
    </body>
</html>
